//---------------------------------------------------------------------------


#pragma hdrstop

#include "TSimpleControlled.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)

__fastcall TSimpleControlled::TSimpleControlled()
{
	ControlledBySelf = true;
	BigCutQuantity = 5;
	ControlledTime[0] = ControlledTime[1] = ControlledTime[2] = ControlledTime[3] = 0;
	BigCutControlled[0] = BigCutControlled[1] = BigCutControlled[2] = BigCutControlled[3] = true;
}

TSimpleControlled & __fastcall TSimpleControlled::operator = (const TSimpleControlled &t)
{
	ControlledBySelf = t.ControlledBySelf;
	BigCutQuantity = t.BigCutQuantity;
	ControlledTime[0] = t.ControlledTime[0];
	ControlledTime[1] = t.ControlledTime[1];
	ControlledTime[2] = t.ControlledTime[2];
	ControlledTime[3] = t.ControlledTime[3];
	BigCutControlled[0] = t.BigCutControlled[0];
	BigCutControlled[1] = t.BigCutControlled[1];
	BigCutControlled[2] = t.BigCutControlled[2];
	BigCutControlled[3] = t.BigCutControlled[3];
	return *this;
}

void __fastcall TSimpleControlleds::Delete(const int Index)
{
   iterator p;
	p = &at(Index);
	erase(p);
}
